package net.qunzhi.modules.cms.service.impl;

import org.springframework.stereotype.Service;
import net.qunzhi.common.utils.BaseQuery;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.qunzhi.common.utils.PageUtils;
import net.qunzhi.common.utils.Query;

import net.qunzhi.modules.cms.dao.TbFlowMeterDao;
import net.qunzhi.modules.cms.entity.TbFlowMeterEntity;
import net.qunzhi.modules.cms.service.TbFlowMeterService;


@Service("tbFlowMeterService")
public class TbFlowMeterServiceImpl extends ServiceImpl<TbFlowMeterDao, TbFlowMeterEntity> implements TbFlowMeterService {

    @Override
    public PageUtils queryPage(BaseQuery query) {
        IPage<TbFlowMeterEntity> page = this.page(
                new Query<TbFlowMeterEntity>().getPage(query),
                new QueryWrapper<TbFlowMeterEntity>()
        );

        return new PageUtils(page);
    }

}